using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.Skins;
using DevExpress.LookAndFeel;
using DevExpress.UserSkins;
using DevExpress.XtraBars;
using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraBars.Helpers;
using System.Data.OleDb;
using BAL;
namespace Giao_dien__1// WindowsApplication1
{
    public partial class FrmChinh : RibbonForm
    {
        public BAL.BAL bussi = new BAL.BAL();
        public FrmChinh()
        {
            InitializeComponent();
        }
        
        private void FormChinh_Load(object sender, EventArgs e)
        {
            this.Enabled = false;
            FrmDangNhap frmdangnhap = new FrmDangNhap();
            frmdangnhap.MdiParent = this.MdiParent;
            frmdangnhap.Show();
        }

        private void bindingNavigator1_RefreshItems(object sender, EventArgs e)
        {
            
        }

        private void bindingNavigator1_Click(object sender, EventArgs e)
        {
            bindingSource1.DataSource = bussi.LayDuLieu("select * from accout1");
            bindingNavigator1.BindingSource = bindingSource1;
            gridControl.DataSource = bindingSource1;
        }

        private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
        {

        }

      



    }
}